<template>
  <view>
    <web-view :src="url" :webview-styles="webviewStyles"></web-view>
  </view>
</template>

<script>
export default {
  name:'externalUrl',
  data() {
    return {
      url: '',
      webviewStyles: {
        progress: {
          color: '#00aaff',
        }
      }
    }
  },

  onLoad(option) {
    console.log('获取到的数据', option)
    if (option.url) {
      this.url = decodeURIComponent(option.url)
    }
    if (option.title) {
      uni.setNavigationBarTitle({
        title: option.title
      })
    }


  }

}
</script>

<style lang="scss" scoped>
@import "externalUrl.scss";
</style>